﻿using MediatR;
using ShineTech.Domain.SeedWork;
using ShineTech.Web.Kanbans;
using System;
using System.Collections.Generic;
namespace ShineTech.Web.Missons.Commands
{
    public class KanbansByFiltersPageQuery : IRequest<PageData<KanbanDTO>>
    {
        public string Name { get; set; }
        public List<Guid> KanbanIds { get; set; }
        public Guid? UserId { get; set; }

        public int PageIndex { get; private set; }
        public int PageSize { get; private set; }


        public KanbansByFiltersPageQuery(string name, Guid? userId, List<Guid> kanbanIds, int pageIndex, int pageSize)
        {
            Name = name ?? string.Empty;
            KanbanIds = kanbanIds;
            UserId = userId;
            PageIndex = pageIndex;
            PageSize = pageSize;
        }
    }
}
